package com.medical.data.utils;

public enum ResultCode {

    SUCCESS(200,"成功"),
    ERROR(500,"失败"),
    UNLOGINUSER(401,"未授权"),
    PATIENTEXIT(202, "患者已存在");

    private Integer code;

    private String desc;

     ResultCode(Integer code,String desc){
        this.code =code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
